package com.tx.zlm_replay.common;

/**
 * @author tx
 * @version 1.0
 * @date 2024/3/18 11:22
 * @description: 返回码
 */
public enum RCode {
    SUCCESS("200","成功"),
    FAIL("-1","失败"),



    ;
    private String code;
    private String msg;

    RCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public RCode setCode(String code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public RCode setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    @Override
    public String toString() {
        return "RCode{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                "} " + super.toString();
    }
}
